<?php
// +----------------------------------------------------------------------
// | OpenCMF [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.opencmf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 廖权名  1528490339@qq.com
// +----------------------------------------------------------------------
namespace Yiban\Model;
use Think\Model;
/**
 * 项目模型
 * @author 廖权名  1528490339@qq.com
 */
class ProblemModel extends Model {
    /**
     * 数据库表名
     * @author 廖权名  1528490339@qq.com
     */
    protected $tableName = 'yiban_problem';

    /**
     * 自动验证规则
     * @author 廖权名  1528490339@qq.com
     */
    protected $_validate = array(
        // 验证新闻


    );

    /**
     * 自动完成规则
     * @author 廖权名  1528490339@qq.com
     */
    protected $_auto = array(
        array('sort', '0', self::MODEL_BOTH),
        array('create_time', 'time', self::MODEL_BOTH, 'function'),
        array('status', '1', self::MODEL_BOTH),
    );


}
